home *** CD-ROM | disk | FTP | other *** search
- /*
- * Exceptions.h
- */
-
- #pragma once
-
- #ifndef __EXCEPTIONS__
- # define __EXCEPTIONS__
-
- extern Boolean gBreakFailure ;
-
- #include "x.h"
-
- #define ENDTRY DONE
- #define FailOSErr(x) FailErr(x)
- #define FailMemError() FailErr(MemError())
- #define FailResError() FailErr(ResError())
- #define FailNIL(x) {if((x)==NULL){FailErr(-108);}}
- #define FailNILRes(x) {if((x)==NULL){FailErr(-192);}}
-
- #if DEBUG
- # define ASSERT(x) {if(!(x)){DebugStr((unsigned char*)"\pASSERTION FAILED!");}}
- #else
- # define ASSERT(x) NULL
- #endif
-
- #define kSilentErr 1
-
- enum {
- excNoException ,
- excMsgNullObject ,
- excMsgLookupFailed ,
- excNewByNameFailed ,
- excPrintJobTooBig ,
- excExceedTELimit ,
- excLastTCLException = excExceedTELimit
- } ;
-
- extern long SpecifyMsg ( short suite , short id ) ;
-
- #endif
-